<template>
  <div id="myheader">
    <h2 :style="{ background: $store.state.backcolor }">学习计划</h2>
    <i @click="showmask"></i>
  </div>
</template>

<script>
export default {
    name:'myheader',
    methods:{
        showmask(){
            this.$store.commit('changemask',true)
        }
    }
};
</script>

<style lang="scss" scoped>
#myheader {
  position: relative;
  color: #fff;
  h2 {
    height: 50px;
    line-height: 50px;
    background-color: rgb(243, 119, 119);
  }
  i {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #fff;
  }
}
</style>